public class out {
    public static void main(String[] args) {

        System.out.println("class--------> " + new Throwable().getStackTrace()[0].getClassName() + "\t method-------->" + new Throwable().getStackTrace()[0].getMethodName());// 输出当前类名，方法名

    }
}